package com.ecommerce.dto;

import com.ecommerce.product.domain.Product;
import lombok.Builder;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * 商品查询结果DTO
 */
@Data
@Builder
@ApiModel("商品查询响应结果")
public class ProductPageResultDTO {
    @ApiModelProperty(value = "商品列表")
    private List<Product> products;

    @ApiModelProperty(value = "总记录数")
    private long totalCount;

    @ApiModelProperty(value = "总页数")
    private int totalPages;
    
    @ApiModelProperty(value = "当前页码")
    private int currentPage;

    @ApiModelProperty(value = "每页大小")
    private int pageSize;
}